﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.InwardOutward
{
    public class InwardOutwardsPresenter : Presenter<IInwardOutwardsView>
    {
        public InwardOutwardsPresenter(IInwardOutwardsView view)
            : base(view)
        {
        }

        public void DisplayPagedByBranch(int refType, int currentPage, bool isMaterial)
        {
            View.InwardOutwards = Model.GetInwardOutwardsByBranch(refType, currentPage, isMaterial);
        }

        public int GetTotalPageByBranch(int refType, bool isMaterial)
        {
            return Model.GetTotalPageFromInwardOutwardByBranch(refType, isMaterial);
        }
    }
}
